package sueldos;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormAttachment;

public class InscripcionUI {

	protected Shell shell;
	private Table table;

	/**
	 * Launch the application.
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			InscripcionUI window = new InscripcionUI();
			window.open();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Open the window.
	 */
	public void open() {
		Display display = Display.getDefault();
		createContents();
		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	/**
	 * Create contents of the window.
	 */
	protected void createContents() {
		shell = new Shell();
		shell.setSize(683, 480);
		shell.setText("SWT Application");
		shell.setLayout(new FormLayout());
		
		table = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);
		FormData fd_table = new FormData();
		fd_table.bottom = new FormAttachment(0, 387);
		fd_table.left = new FormAttachment(0, 10);
		fd_table.right = new FormAttachment(0, 657);
		fd_table.top = new FormAttachment(0, 77);
		table.setLayoutData(fd_table);
		table.setHeaderVisible(true);
		table.setLinesVisible(true);
		
		TableColumn tblclmnCuil = new TableColumn(table, SWT.NONE);
		tblclmnCuil.setWidth(121);
		tblclmnCuil.setText("CUIL");
		
		TableColumn tblclmnApellidoYNombre = new TableColumn(table, SWT.NONE);
		tblclmnApellidoYNombre.setWidth(250);
		tblclmnApellidoYNombre.setText("Apellido y Nombre");
		
		TableColumn tblclmnLibretasino = new TableColumn(table, SWT.NONE);
		tblclmnLibretasino.setWidth(120);
		tblclmnLibretasino.setText("Nro Libreta");

	}
}
